// 存放用户所需要的常量
const path = require('path');
const { version } = require('../package.json');

// 存储模板的位置 下载前先找临时目录存放下载的文件
// console.log(process.platform)
const platformHome = process.platform === 'darwin' ? 'HOME' : 'USERPROFILE';
const home = process.env[platformHome];
const downLoadDirectory = path.join(home, '.template');
// console.log(downLoadDirectory);
module.exports = {
  version,
  downLoadDirectory,
};
